import { connect } from "react-redux";
import { Home } from "../components";
import { getHot,getBanner } from "../actions";

const mapStateToProps = state => {
  //4.将仓库里state转化为props，组件间数据传递只能通过props
  return {
    lists : state.product.lists,
    boo   : state.login,
    banner: state.home.banner,
    hot   : state.home.hot,
  };
};


export default connect(
  mapStateToProps,
  { getHot ,getBanner}
)(Home);
